﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo09
{
    class Car
    {
        public string band;
        public string type;

        public string Band {
            get { return this.band; }
            set { this.band = value; }
        }

        public string Type {
            get { return this.type; }
            set { this.type = value; }
        }

        public Car(string band, string type) {
            this.band = band;
            this.type = type;
        }

        public void Run() {
            Console.WriteLine("一辆{0},{1}的车在地上奔跑。",this.band,this.type);
        }
    }
}
